package com.gqj.elec.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.gqj.common.annotation.Excel;
import com.gqj.common.core.domain.BaseEntity;

/**
 * 物资检修详情对象 elec_material_repairDetail
 *
 * @author lxq
 * @date 2023-12-17
 */
public class ElecMaterialRepairdetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long repairdetailId;

    /** 检修ID */
    @Excel(name = "检修ID")
    private Long repairId;

    /** 物资ID */
    @Excel(name = "物资ID")
    private Long materialId;

    /** 检修内容 */
    @Excel(name = "检修内容")
    private String repairContent;

    /** 检修时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "检修时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date repairDate;

    /**
     * 物资编码
     */
    @Excel(name = "物资编码")
    private String materialCode;

    /**
     * 物资名称
     */
    @Excel(name = "物资名称")
    private String materialName;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String specifications;

    /**
     * 分类ID
     */
    @Excel(name = "分类ID")
    private Long sortId;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private String sortName;

    /**
     * 库房ID
     */
    @Excel(name = "库房ID")
    private Long warehouseId;

    /**
     * 库房
     */
    @Excel(name = "库房")
    private String warehouseName;

    /**
     * 柜架ID
     */
    @Excel(name = "柜架ID")
    private Long cabinetId;

    /**
     * 柜架
     */
    @Excel(name = "柜架")
    private String cabinetName;

    /**
     * 层位ID
     */
    @Excel(name = "层位ID")
    private Long gridId;

    /**
     * 层位
     */
    @Excel(name = "层位")
    private String gridName;

    /**
     * 单位ID
     */
    @Excel(name = "单位ID")
    private Long unitId;

    /**
     * 单位
     */
    @Excel(name = "单位")
    private String unitName;

    /**
     * 供应商ID
     */
    @Excel(name = "供应商ID")
    private Long providerId;

    /**
     * 供应商
     */
    @Excel(name = "供应商")
    private String providerName;

    /** 物资类别 */
    private String materialCategory;

    /** 采购日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采购日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseDate;

    public void setRepairdetailId(Long repairdetailId)
    {
        this.repairdetailId = repairdetailId;
    }

    public Long getRepairdetailId()
    {
        return repairdetailId;
    }
    public void setRepairId(Long repairId)
    {
        this.repairId = repairId;
    }

    public Long getRepairId()
    {
        return repairId;
    }
    public void setMaterialId(Long materialId)
    {
        this.materialId = materialId;
    }

    public Long getMaterialId()
    {
        return materialId;
    }
    public void setRepairContent(String repairContent)
    {
        this.repairContent = repairContent;
    }

    public String getRepairContent()
    {
        return repairContent;
    }

    public Date getRepairDate() {
        return repairDate;
    }

    public void setRepairDate(Date repairDate) {
        this.repairDate = repairDate;
    }

    public String getMaterialCode() {
        return materialCode;
    }

    public void setMaterialCode(String materialCode) {
        this.materialCode = materialCode;
    }

    public String getMaterialName() {
        return materialName;
    }

    public void setMaterialName(String materialName) {
        this.materialName = materialName;
    }

    public String getSpecifications() {
        return specifications;
    }

    public void setSpecifications(String specifications) {
        this.specifications = specifications;
    }

    public Long getSortId() {
        return sortId;
    }

    public void setSortId(Long sortId) {
        this.sortId = sortId;
    }

    public String getSortName() {
        return sortName;
    }

    public void setSortName(String sortName) {
        this.sortName = sortName;
    }

    public Long getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Long warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public Long getCabinetId() {
        return cabinetId;
    }

    public void setCabinetId(Long cabinetId) {
        this.cabinetId = cabinetId;
    }

    public String getCabinetName() {
        return cabinetName;
    }

    public void setCabinetName(String cabinetName) {
        this.cabinetName = cabinetName;
    }

    public Long getGridId() {
        return gridId;
    }

    public void setGridId(Long gridId) {
        this.gridId = gridId;
    }

    public String getGridName() {
        return gridName;
    }

    public void setGridName(String gridName) {
        this.gridName = gridName;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    public Long getProviderId() {
        return providerId;
    }

    public void setProviderId(Long providerId) {
        this.providerId = providerId;
    }

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getMaterialCategory() {
        return materialCategory;
    }

    public void setMaterialCategory(String materialCategory) {
        this.materialCategory = materialCategory;
    }

    public Date getPurchaseDate() {
        return purchaseDate;
    }

    public void setPurchaseDate(Date purchaseDate) {
        this.purchaseDate = purchaseDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("repairdetailId", getRepairdetailId())
            .append("repairId", getRepairId())
            .append("materialId", getMaterialId())
            .append("repairContent", getRepairContent())
            .append("repairDate", getRepairDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
